import Index from "@/components/pages/index";
import Login from "@/components/pages/login";
import Error404 from "@/components/pages/error404";
import QueryBankNumber from "@/components/pages/query-bank-number";
import AddUser from "@/components/pages/add-user";
// 旧
import MerchantsList from "@/components/pages/merchants/list";
import MerchantsAuditList from "@/components/pages/merchants/audit-list";
import OrderList from "@/components/pages/order/list";
import AgentList from "@/components/pages/agent/list";
import AgentAuditList from "@/components/pages/agent/audit-list";
import AccountAgent from "@/components/pages/account/agent-list";
import AccountMerchant from "@/components/pages/account/merchant-list";
import KeyList from "@/components/pages/key/list";


import MerchantsChildHl from "@/components/pages/merchants/child-hl";
import MerchantsChildLd from "@/components/pages/merchants/child-ld";
import MerchantsAddMerch from "@/components/pages/merchants/add-merch";
import AgentMerchantsList from "@/components/pages/agentStatus/merchants/list";
import AgentOrderList from "@/components/pages/agentStatus/order/list";


//商户后台界面
import merchantOrder from "@/components/pages/merchant/order-list";
import userInfo from "@/components/pages/merchant/userinfo";
//代理商界面
import agentOrder from "@/components/pages/agent/order/list";
import agentMerchants from "@/components/pages/agent/merchants/list";
import agentIncome from "@/components/pages/agent/share/income";
import agentDrawal from "@/components/pages/agent/share/drawal";
import agentInfo from "@/components/pages/agent/share/info";

//管理员界面
import superMerchants from "@/components/pages/super/merchants/list";
import superMerchantsAudit from "@/components/pages/super/merchants/audit-list";
import superOrder from "@/components/pages/super/order/list";
import superAgent from "@/components/pages/super/agent/list";
import superAgentAudit from "@/components/pages/super/agent/audit-list";
import superDrawal from "@/components/pages/super/agent/drawal";
import superAgentAccount from "@/components/pages/super/account/agent-list";
import superMerchantsAccount from "@/components/pages/super/account/merchant-list";
import superMerchantsKey from "@/components/pages/super/key/list"; 
//渠道界面
import superRyx from "@/components/pages/super/channel/ryx"; 
import superEpay from "@/components/pages/super/channel/epay"; 

//小程序后台管理
import minCreateBanner from "@/components/pages/minapp/banner/create"; 
import minShopList from "@/components/pages/minapp/shop/list"; 
import minClassList from "@/components/pages/minapp/class/list"; 
import minactivityList from "@/components/pages/minapp/activity/list"; 

export default [
    { path: '/', redirect: 'index' },
    { name: "index", path: "/index", component: Index, meta: { index: "1" } },
    { name: "login", path: "/login", component: Login },
    { path: "", component: Index, meta: { index: "1" } },
    { name: "error404", path: "*", component: Error404 },
    { name: "QueryBankNumber", path: "/query-bank-number", component: QueryBankNumber },
		{ name: "addUser", path: "/add-user", component: AddUser, meta:{}  },

    { name: "MerchantsList", path: "/merchants/list", component: MerchantsList, meta: { index: "2-1",} },
    { name: "MerchantsAuditList", path: "/merchants/audit-list", component: MerchantsAuditList, meta: { index: "2-2"} },
    { name: "OrderList", path: "/order/list", component: OrderList, meta: { index: "3-1" } },
    { name: "AgentList", path: "/agent/list", component: AgentList, meta: { index: "4-1"} },
    { name: "AgentAuditList", path: "/agent/audit-list", component: AgentAuditList, meta: { index: "4-2"} },
    { name: "AccountAgent", path: "/account/agent-list", component: AccountAgent, meta: {} },
		{ name: "AccountMerchant", path: "/account/merchant-list", component: AccountMerchant, meta: {} },
		{ name: "KeyList", path: "/key/list", component: KeyList, meta: { index: "5" }},
		
		{ name: "MerchantsChildHl", path: "/merchants/child-hl", component: MerchantsChildHl, meta: { index: "2-1" } },
		{ name: "MerchantsChildLd", path: "/merchants/child-ld", component: MerchantsChildLd, meta: { index: "2-1" } },
		{ name: "MerchantsAddMerch", path: "/merchants/add-merch", component: MerchantsAddMerch },
		{ name: "AgentMerchantsList", path: "/agentStatus/merchants/list", component: AgentMerchantsList, meta: { index: "2-1", } },
		{ name: "AgentOrderList", path: "/agentStatus/order/list", component: AgentOrderList, meta: { index: "3-1", } },
		 
		 //商户页面
		 { name: "merchantOrder", path: "/merchant/order-list", component: merchantOrder, meta: {} },
		 { name: "userInfo", path: "/merchant/userinfo", component: userInfo, meta: {} },
		 //代理商页面
		 { name: "agentOrder", path: "/agent/order/list", component: agentOrder, meta: {} },
		 { name: "agentMerchants", path: "/agent/merchants/list", component: agentMerchants, meta: {} },
		 { name: "agentIncome", path: "/agent/share/income", component: agentIncome, meta: {} },
		 { name: "agentDrawal", path: "/agent/share/drawal", component: agentDrawal, meta: {} },
		 { name: "agentInfo", path: "/agent/share/info", component: agentInfo, meta: {} },
		 
		 //超级管理界面
		 { name: "superMerchants", path: "/super/merchants/list", component: superMerchants, meta: {} },
		 { name: "superMerchantsAudit", path: "/super/merchants/audit-list", component: superMerchantsAudit, meta: {} },
		 { name: "superOrder", path: "/super/order/list", component: superOrder, meta: {} },
		 { name: "superAgent", path: "/super/agent/list", component: superAgent, meta: {} },
		 { name: "superDrawal", path: "/super/agent/drawal", component: superDrawal, meta: {} },
		 { name: "superAgentAudit", path: "/super/agent/audit-list", component: superAgentAudit, meta: {} },
		 { name: "superAgentAccount", path: "/super/account/agent-list", component: superAgentAccount, meta: {} },
		 { name: "superMerchantsAccount", path: "/super/account/merchant-list", component: superMerchantsAccount, meta: {} },
		 { name: "superMerchantsKey", path: "/super/key/list", component: superMerchantsKey, meta: {} },
		 //进件渠道界面
		 { name: "superRyx", path: "/super/channel/ryx", component: superRyx, meta: {} },
		 { name: "superEpay", path: "/super/channel/epay", component: superEpay, meta: {} },
		 
		 //小程序后台管理
		  { name: "minCreateBanner", path: "/minapp/banner/create", component: minCreateBanner, meta: {} },
		  { name: "minShopList", path: "/minapp/shop/list", component: minShopList, meta: {} },
		  { name: "minClassList", path: "/minapp/class/list", component: minClassList, meta: {} },
		  { name: "minactivityList", path: "/minapp/activity/list", component: minactivityList, meta: {} },
];
